package com.meiyou.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.meiyou.pojo.MeiyouThir;
import com.meiyou.service.ThirdService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@Api(value = "美游app控制器", tags = { "所有api接口" })
public class ThirdController {
	@Resource
	private ThirdService thirdServiceImpl;

	@RequestMapping(value = "insThird", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "新增第三方信息")
	/**
	 * 新增第三方信息
	 * 
	 * @param third
	 * @return
	 */
	public int insThird(MeiyouThir meiyouThir) {
		return thirdServiceImpl.insThird(meiyouThir);
	}

	@RequestMapping(value = "selThird", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "分页显示第三方信息")
	/**
	 * 显示第三方信息
	 * 
	 * @param third
	 * @return
	 */
	public  List<MeiyouThir> selThird(String tUCount) {
		return thirdServiceImpl.selThird(tUCount);
	}

	@RequestMapping(value = "updThird", method = RequestMethod.POST)
	@ResponseBody
	@ApiOperation(value = "修改第三方信息")
	/**
	 * 修改第三方信息
	 * 
	 * @param third
	 * @return
	 */
	public int updThird(MeiyouThir meiyouThir) {
		return thirdServiceImpl.updThird(meiyouThir);
	}
}
